package www.rijiyingyu;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
public class BeanPostProcessorOne implements InstantiationAwareBeanPostProcessor, BeanNameAware {
	@Override
	public Object postProcessBeforeInstantiation(Class<?> beanClass, String beanName) throws BeansException {


		return 1;
	}

	@Override
	public void setBeanName(String name) {

	}
}
